﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace abhishek.somnath.bidyut.library
{
    public class Factorial
    {
        public static long GetFactorial(int n)
        {
            int fact = 1;
            while (n >= 1)
            {
                fact = fact * n;
                n--;
            }
            return fact;
        }
    }
}
